package com.gopay.common.cps.manager.bank.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.common.cps.dao.bank.BankOrderQueryDAO;
import com.gopay.common.cps.manager.bank.BankOrderQueryManager;
import com.gopay.common.domain.bank.BankOrder;
import com.gopay.common.domain.bis.BisBankBcdlOrder;

/**
 * 银行流水查询Manager实现
 * 
 * @BankOrderQueryManagerImpl.java
 * @author LEO
 * @2013-3-19 下午02:18:20 www.gopay.com.cn Inc.All rights reserved.
 */
@Service("bankOrderQueryManager")
public class BankOrderQueryManagerImpl implements BankOrderQueryManager {

    @Resource(name = "bankOrderQueryDAO")
    private BankOrderQueryDAO bankOrderQueryDAO;

    @Override
    public List<BankOrder> getCheckOrder(String orderStatus, int count, int pageIndex, int pageSize) {
        List<BankOrder> list = bankOrderQueryDAO.getCheckOrder(orderStatus, count, pageIndex, pageSize);

        return list;
    }

    @Override
    public List<BankOrder> getCheckBcdlOrder(String orderStatus, int count, int pageIndex, int pageSize) {
        List<BankOrder> list = bankOrderQueryDAO.getCheckBcdlOrder(orderStatus, count, pageIndex, pageSize);

        return list;
    }

    @Override
    public int getCheckOrderCount(String orderStatus, int count) {
        int rsCount = bankOrderQueryDAO.getCheckOrderCount(orderStatus, count);

        return rsCount;
    }

    @Override
    public int getCheckBcdlOrderCount(String orderStatus, int count) {
        int rsCount = bankOrderQueryDAO.getCheckBcdlOrderCount(orderStatus, count);

        return rsCount;
    }

    @Override
    public BankOrder getCheckOrderByOutOrderId(String orderId) {
        return bankOrderQueryDAO.getCheckOrderByOutOrderId(orderId);
    }
    
    @Override
	public BankOrder getCheckOrderByGopayOrderId(String orderId) {
    	return bankOrderQueryDAO.getCheckOrderByGopayOrderId(orderId);
	}

    @Override
    public BankOrder getEnable(String gopayOrderId) {
        return bankOrderQueryDAO.getEnable(gopayOrderId);
    }

	@Override
	public List<BankOrder> getCheckOrderByBank(String orderStatus, int pageIndex,
			int pageSize,String bankCode) {
		 List<BankOrder> list = bankOrderQueryDAO.getCheckOrderByBank(orderStatus, pageIndex, pageSize,bankCode);
	     return list;
	}

	@Override
	public int getCheckOrderCountByBank(String orderStatus,String bankCode) {
		 int rsCount = bankOrderQueryDAO.getCheckOrderCountByBank(orderStatus,bankCode);
	     return rsCount;
	}
	@Override
	public List<BankOrder> getCheckBcdlOrder(String bank,String orderStatus, int pageIndex,
			int pageSize) {
		 List<BankOrder> list = bankOrderQueryDAO.getCheckBcdlOrder(bank,orderStatus, pageIndex, pageSize);
	     return list;
	}

	@Override
	public int getCheckBcdlOrderCount(String orderStatus,String bank) {
		 int rsCount = bankOrderQueryDAO.getCheckOrderCount(orderStatus,bank);

	     return rsCount;
	}

	@Override
    public BisBankBcdlOrder getBankBcdlOrderById(String orderId) {
		// TODO Auto-generated method stub
		return null;
	}

	
}
